package com.cong.cojcodesandbox.security;

import java.security.Permission;

/**
 * 默认安全管理器
 * @author 86188
 * @date 2023/09/09
 */
public class DefaultSecurityManager extends SecurityManager {


    /**
     * 检查所有权限
     * @param perm
     */
    @Override
    public void checkPermission(Permission perm) {
        System.out.println("默认不做任何权限限制");
        System.out.println(perm);
        super.checkPermission(perm);
        new SecurityException("权限不足"+perm);
    }
}
